##
## Makefile for zappy in /home/druart_p/Work/projet/zappy/zappy-2015-2014s-renard_g/serv-src
## 
## Made by pierrick druart
## Login   <druart_p@epitech.net>
## 
## Started on  Tue Jul 10 15:39:10 2012 pierrick druart
## Last update Thu Jul 19 21:32:23 2012 guillaume renard
##

NAME	=	zappy-serv

SRCS	=	broadcast.c		\
		check_team_graph.c	\
		client.c		\
		clear.c			\
		create_string.c		\
		exec.c			\
		expulse.c		\
		egg.c			\
		event.c			\
		event_func.c		\
		event_monitor.c		\
		fileconf.c		\
		fork.c			\
		game.c			\
		game_event.c		\
		game_func.c		\
		gamer.c			\
		init.c			\
		initialisation.c	\
		incantation.c		\
		incan_more.c		\
		item.c			\
		list.c			\
		list_func.c		\
		look_player.c		\
		look_player_cardi.c	\
		kill_client.c		\
		main.c			\
		move_map.c		\
		move_player.c		\
		object.c		\
		parser.c		\
		poub.c			\
		ressSpawn.c		\
		string.c		\
		strtowordtab.c		\
		task.c			\
		team.c			\
		time.c			\
		xfunc2.c		\
		xfunc.c			\
		monitor.c		\
		cmd_monitor.c		\
		drop_obj.c		\
		serv_monitor.c		\
		serv_monitor2.c		\
		handle_connect_mnt.c	\
		handle_expulse_mnt.c	\
		handle_incant_mnt.c	\
		handle_invent_mnt.c	\
		handle_level_mnt.c	\

OBJS	=	$(SRCS:.c=.o)

CC	=	gcc

RM	=	rm -f

CFLAGS	=	-W -Wall

DEBUG	=	-g

LDFLAGS	=	-lm

all	:	$(NAME)

$(NAME)	:	$(OBJS)
		$(CC) -o $(NAME) $(OBJS) $(LDFLAGS)

clean	:
		$(RM) $(OBJS)

fclean	:	clean
		$(RM) $(NAME)
		$(RM) debug

re	:	fclean all

debug	:
		$(CC) -g $(SRCS) -o debug $(LDFLAGS)

%.o	:	%.c
		$(CC) $(CFLAGS) -c $< -o $@
